//
//  SecuritySetFunctionForOrgCell.m
//  Kjs-iOS
//
//  Created by 江伟 on 16/9/1.
//  Copyright © 2016年 jmhz. All rights reserved.
//

#import "SecuritySetFunctionForOrgCell.h"
#import "UIImage+MapUIImage.h"

@implementation SecuritySetFunctionForOrgCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)setType:(SecurityFunctionCellType)type {
    _type = type;
    self.functionDescriptionText.text = [self descriptionTextArray][type];
    self.functionDisplayImage.image = [UIImage imageNamed:[self descriptionImageArray][type]];
    self.arrowImage.image = [UIImage drawArrowWithDirection:DirectionTypeRight];
}
- (NSArray <NSString *> *) descriptionImageArray {
    return @[@"real-auth",@"tel-bind",@"login-psw",@"trade-psw",@"tel-bind"];
}

- (NSArray <NSString *> *) descriptionTextArray {
    return @[@"实名认证",@"手机绑定",@"登录密码",@"交易密码",@"法人手机号"];
}

@end
